import 'package:json_annotation/json_annotation.dart';
import 'package:xindong/models/gift/xindong_gift_receive_class.dart';
import 'package:xindong/models/user/xindong_other_user.dart';
import 'package:xindong/models/xindong_crown_class.dart';

part 'xindong_kongjian_user.g.dart';

// 空间
@JsonSerializable()
class XinDongSpaceUser extends XinDongOtherUser {
  int? kejian;
  int? proxy;
  int? love; // 是否关注
  int? attention; // 关注数
  int? lianmai_limit; // 连麦限制
  int? invite_count;
  int? heart; // 被心动数
  int? free_chat;
  int? free_voice;
  int? free_video;
  int? zhaohu;
  int? burn;
  int? speaker;
  int? defendsCount;
  int? hadVoiceZan;
  int? hide_distance; // 隐藏距离
  int? hide_online_time; // 隐藏在线时间

  // 数据类型和other user不一样

  dynamic volley; // 金币
  dynamic angel_min; // 守护
  String? angel_icon; // 守护图标

  // 语音签名
  String? voice;
  int? voice_time;
  int? voice_zan;
  int? has_voice_zan;

  String? photo_price;
  String? line_price;
  String? sendCode;
  String? score;
  String? emotion;
  String? education_background;
  String? is_house_purchase;
  String? is_car_purchase;
  String? monthly_salary; // 月薪
  List<String>? tags;
  List<XinDongGiftReceiveClass>? gift;
  String? slogan; // 签名
  String? self_slogan; // 口号
  late List<String> dy_program;
  late List<String> dy_conditions;
  late List<String> photo_show;
  late List<String> self_images;

  XinDongSpaceUser();

  factory XinDongSpaceUser.fromJson(Map<String, dynamic> json) => _$XinDongSpaceUserFromJson(json);

  @override
  Map<String, dynamic> toJson() => _$XinDongSpaceUserToJson(this);
}
